package net.sx.minemodule.mvp.item;

import android.view.View;

import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.mvp.BaseItem;

import net.sx.minemodule.R;
import net.sx.minemodule.mvp.bean.GoodsBean;

/**
 * 描述:  订单商品 小项 (多个商品)
 * author:胡邦茂
 * CreateDate: 2019/7/5 15:16
 */
public class GoodsItems extends BaseItem<GoodsBean> {
    private String attrText = "";

    public GoodsItems(GoodsBean data) {
        super(data);
    }

    @Override
    public int getLayout() {
        return R.layout.mine_item_mine_order_twos;
    }

    public String getGoodsImgPath() {
        return getData().getPic();
    }

    public void orderClick(View view) {
        ARouter.getInstance().build(ARouterPath.PATH_MINE_ORDER_DETAIL).navigation();
    }

}
